package com.crm.manager.mapper;

import com.crm.manager.domain.dto.TimeDto;
import com.crm.manager.domain.vo.BaseInfoVO;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

@Mapper
public interface IndexMapper {
    BaseInfoVO getBaseInfo();


    @MapKey("create_by")
    List<Map> getBusinessChangeStatistics(@Param("begin") LocalDate begin, @Param("end") LocalDate end);

    List<Map> salesStatistic(@Param("begin") LocalDate begin, @Param("end") LocalDate end);
}
